package com.movie.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Order {
    private Long id;
    private String orderNumber;
    private Long userId;
    private Long movieId;
    private Long showtimeId; // 添加场次ID
    private String seatInfo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;

    private BigDecimal price;
    private Integer status; // 0=待支付, 1=已完成, 2=已取消

    // 关联用户信息
    private User user;
    // 关联电影信息
    private Movie movie;
    // 关联场次信息
    private Showtime showtime;
}